<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 <title>宝华茶餐厅</title>
    <link href="../resources/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="../resources/css/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css"/>
    <script src="../resources/js/jquery-1.9.1.min.js" type="text/javascript"></script> 
    <script src="../resources/js/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>   
	<script src="../resources/js/ligerui.min.js" type="text/javascript"></script>
        <script type="text/javascript">
        <!--
            var tab = null;
            var accordion = null;
            var tree = null;
            $(function ()
            {
                //布局
                $("#layout1").ligerLayout({ leftWidth: 190, height: '100%', onHeightChanged: f_heightChanged });

                var height = $(".l-layout-center").height();

                //Tab
                $("#framecenter").ligerTab({ height: height });

                //面板
                $("#accordion1").ligerAccordion({ height: height - 24, speed: null });

                $(".l-link").hover(function ()
                {
                    $(this).addClass("l-link-over");
                }, function ()
                {
                    $(this).removeClass("l-link-over");
                });
                //树
                $("#tree1").ligerTree({
                    checkbox: false,
                    nodeWidth: 120,
                    attribute: ['nodename', 'url'],
                    onSelect: function (node)
                    {
                        if (!node.data.url) return;
                        var tabid = $(node.target).attr("tabid");
                        if (!tabid)
                        {
                            tabid = new Date().getTime();
                            $(node.target).attr("tabid", tabid)
                        }
                        if ($(">ul >li", tab.tab.links).length >= 4)
                        {
                            var currentTabid = $("li.l-selected", tab.tab.links).attr("tabid"); //当前选择的tabid
                            if (currentTabid == "home") return;
                            tab.overrideTabItem(currentTabid, { tabid: tabid, url: node.data.url, text: node.data.text });
                            return;
                        }
                        f_addTab(tabid, node.data.text, node.data.url);
                    }
                });

                tab = $("#framecenter").ligerGetTabManager();
                accordion = $("#accordion1").ligerGetAccordionManager();
                tree = $("#tree1").ligerGetTreeManager();
                $("#pageloading").hide();
            });

            function f_heightChanged(options)
            {
                if (tab)
                    tab.addHeight(options.diff);
                if (accordion && (options.middleHeight - 24 > 0))
                    accordion.setHeight(options.middleHeight - 24);
            }
            function f_addTab(tabid,text, url)
            { 
                tab.addTabItem({ tabid : tabid,text: text, url: url });
            } 
             
            -->
     </script> 
<style type="text/css"> 
    body{ padding:0px; margin:0;   overflow:hidden;}  
    .l-link{ display:block; height:26px; line-height:26px; padding-left:10px; text-decoration:underline; color:#333;}
    .l-link2{text-decoration:underline; color:white;}
    .l-layout-top{background:#102A49; color:White;}
    .l-layout-bottom{ background:#E5EDEF; text-align:center;}
    #pageloading{position:absolute; left:0px; top:0px; background:white url('../resources/images/loading.gif') no-repeat center; width:100%; height:100%; height:700px; z-index:99999;}
    .l-link{ display:block; line-height:22px; height:22px; padding-left:20px;border:1px solid white; margin:4px;}
    .l-link-over{ background:#FFEEAC; border:1px solid #DB9F00;}
 </style>
</head>
<body style="padding:0px;">  
<div id="pageloading"></div>
  <div id="layout1" style="width:100%">
        <div position="top" style="background:#102A49; color:White; ">
            <div style="margin-top:10px; margin-left:10px; font-size:28px">宝华茶餐厅</div>
        </div>
        <div position="left"  title="宝华茶餐厅订餐管理系统" id="accordion1"> 
                     <div title="功能列表" class="l-scroll">
                         <ul id="tree1" style="margin-top:3px;">
                         
                            <li isexpand="false" url="#"><span>大厅</span></li>
                            
                            <li isexpand="false"><span>菜单</span><ul>
                               
                            </ul></li>
                           

                           <li isexpand="false"><span>基本信息管理</span><ul>
                                <li url="/baohua/supplier/index"><span>供应商设置</span></li>
                                <li url="/baohua/materiel/index"><span>物料设置</span></li>
                                <li url="#"><span>商品设置</span></li>
                            </ul></li>
                           
                            <li isexpand="false"><span>点餐管理</span><ul>
                            </ul></li>

                            <li isexpand="false"><span>订单管理</span><ul>
                                <li url="../order/show"><span>订餐</span></li>
                                <li url="../order/index"><span>订单查询</span></li>
                            </ul></li>
                            
                            <li isexpand="false"><span>后厨管理</span><ul>
                            </ul></li>
                            <li isexpand="false"><span>库存管理</span><ul> 
                                <li url="/baohua/inventory/index"><span>库存查询</span></li>
                                <li url="/baohua/instore/index0"><span>采购进货</span></li>
                                <li url="/baohua/instore/index1"><span>领料出货</span></li>
                                <li url="inventorySearch"><span>采购退货</span></li> 
                            </ul></li>
                            <li isexpand="false"><span>收银管理</span><ul>
                            </ul></li>
                            <li isexpand="false"><span>员工管理</span><ul>
                            	<li url="/baohua/staff/index"><span>员工查询</span></li> 
                            </ul></li>
                            <li isexpand="false"><span>送餐管理</span><ul>
                            </ul></li>
                             <li isexpand="false"><span>会员管理</span><ul>
                             <li url="/baohua/member/index"><span>会员查询</span></li>
                            </ul></li>
                             <li isexpand="false"><span>菜单管理</span><ul>
                                 <li url="/baohua/menu/index"><span>菜单设定</span></li>
                            </ul></li>  
                            <li isexpand="false"><span>系统设定</span><ul>
                              	 <li url="/baohua/role/index"><span>角色权限设定</span></li>
                            </ul></li>                                                      
                         </ul>
                    </div>
        </div>
        <div position="center" id="framecenter"> 
            <div tabid="home" title="我的主页" style="height:300px" >
                <iframe frameborder="0" name="home" src="../welcome.html"></iframe>
            </div> 
        </div> 
        <div position="bottom">
            Copyright © 2013 www.baohua.com
        </div>
    </div>
</body>
</html>
